std::basic_string::back

From Cppreference

Jump to: navigation, search
​CharT& back();
(C++0x)
const CharT& back() const;
(C++0x)

Returns reference to the last character in the string.

Contents

Parameters

(none)

Return value

reference to the last character.

Complexity

constant

See also

front (C++0x)
accesses the first character
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages